package com.dnjn.happiness.common.config;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "app")
@Getter
@Setter
public class AppConfig {

    private String websocketUri;
    private ModbusProp modbus;


    @Data
    public static class ModbusProp {
        private String host="127.0.0.1";
        private Integer port=502;

    }
}
